<template>
  <el-dialog
    title="流程图"
    :visible.sync="dialog.isShow"
    top="70px"
    :close-on-click-modal="false"
  >
    <el-image
      :src="url"
    />
  </el-dialog>
</template>
<script>
import { getImages } from '@/api/system/approval-flow/approval-type'

export default {
  name: 'Visio',
  data() {
    return {
      url: '',
      dialog: {
        isShow: false
      }
    }
  },
  created() {

  },
  methods: {
    show() {
      this.dialog.isShow = true
    },
    getImages(row) {
      getImages(row.deploymentId, row.diagramResourceName).then(res => {
        this.url = 'data:image/png;base64,' + res.images[0]
      })
    }
  }
}
</script>
